From: bors Date: Tue, 3 Apr 2018 22:50:12 +0000 (+0000) Subject: Auto merge of #5287 - matklad:safer-intern, r=Eh2406 X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~102 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=9da0b7cdb82db61adecaad94f7b959e171704749;p=cargo.git Auto merge of #5287 - matklad:safer-intern, r=Eh2406 Slightly improve InternedString * Use `&'static str` instead of (ptr, len) pair to reduce unsafety. * try make hash calculation O(1) instead of O(n), fail miserably, document findings. * Rename `to_inner` -> `as_str()`. --- 9da0b7cdb82db61adecaad94f7b959e171704749